package com.onpositive.simple.persistance;



public interface IStore<T> extends Iterable<T>{

	public Object put(T object) throws IllegalArgumentException;// returns id
	public T get(Object id) throws IllegalArgumentException;
	public void delete(Object id) throws IllegalArgumentException;
	public Object find(T source) throws IllegalArgumentException;
	
	//Iterable<T> query(String sortField,boolean askendingSort,Filter... filters);
	int[] query(String sortField,boolean askendingSort,Filter... filters);
}
